import request from "@/utils/request";



export function doEdit(data) {
  return request({
    url: "/sinohis/pension/sys/role/"+data.institutionNumber,
    method: "post",
      data

  });

}
export function add(data) {
  return request({
    url: "/sinohis/pension/sys/role",
    method: "put",
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/sys/role/page/condition",
    method: "get",

    params
  });
}
export function doDelete(params) {
  return request({
    url: "/sinohis/pension/sys/role/"+params.institutionNumber +'/' +params.roleCode ,
    method: "DELETE",

  });
}
export function tree(params) {
  return request({
    url: "/sinohis/pension/sys/resource/top/tree",
    method: "GET",

  });
}
